﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace shfa.snomtastic.data.business
{
    public class EventLog
    {
        public EventLogController ec;


        public EventLog()
        {
            ec = new EventLogController();
        }


        public void LogEvent(Guid phoneId, Guid userId, string macAddress, string ipAddress, string userAgent, string eventSource, string eventMessage,string eventType)
        {
            EventLogInfo eli = new EventLogInfo(phoneId, userId, macAddress, ipAddress, userAgent, eventSource, eventMessage, eventType, DateTime.UtcNow);
            ec.InsertEventLog(eli);
        }


    }
}
